package com.itheima.exception;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Demo01 {


    public static void main(String[] args) throws ParseException {
        //sing();
        dance();
    }

    public static void sing(){
        int i=1/0;
        System.out.println(i);
    }

    public static void dance() throws ParseException {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        Date date = sdf.parse("2021/09-02");
        System.out.println(date);


    }
}
